package anoo;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;

public class People {
    @Value("lisi")
    private String name;

    @Resource
    private Phone phone;

    @Resource(name = "xm")
    private PC pc;

    public String getName() {
        return name;
    }

    public Phone getPhone() {
        return phone;
    }

    public PC getPc() {
        return pc;
    }
}
